#include <QCoreApplication>
#include <QtConcurrentRun>
int run_tvmain(int argc, char **argv);

int main(int argc, char *argv[])
{
	QCoreApplication a(argc, argv);
	QThread::msleep(1000);
	//子线程运行Turbo Vision，并优雅退出
	auto fu = QtConcurrent::run([&]() -> int {
				  run_tvmain(argc, argv);
				  return 0;
			  }).then([](int ret) { QCoreApplication::exit(ret); });

	return a.exec();
}
